package com.hmdp.utils;

import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
@Component
public class ResourceVerification {
    //权限比较
    private List<String> resources = new ArrayList<>();

    public Boolean compareResource(String temp){
        initResources();
        if (resources.contains(temp)){
            return true;
        }
        return false;
    }
    public void initResources(){
        resources.add("/user/me");
        resources.add("/user/test");
        resources.add("/test/me");
        resources.add("/test/test");
        resources.add("/test/me");
    }
}
